How to disable directory listing for Jetty's WebAppContext
How to disable directory listing for Jetty’s WebAppContext
maven 配置
edit webdefault.xml and set dirAllowed to false
default
org.mortbay.jetty.servlet.Default
dirAllowed
false
Note, if no default descriptor is specified then webdefault.xml usually included in jetty.jar is used, which allows directory listing.

